package de.lns;

public class Player {
	
private int money=600;
private int life=12;
private String name;
private static Player instance;

public static Player getInstance(){
	if(instance==null){
		instance=new Player();
	}
	return instance;
}
private Player(){
	
}

public void buy(int money){
	this.money-=money;
	System.out.println(this.money);
}
public void takeDamage(int damage){
	life-=damage;
}
public String getName() {
	return name;
}
public void setName(String name) {
	this.name = name;
}
public int getMoney() {
	return money;
}
public void addMoney(int money){
	this.money+=money;
}
public int getLife() {
	return life;
}

}
